package com.whut.gkd.service;

import com.whut.gkd.bean.PageInfo;
import com.whut.gkd.bean.ShopInfo;
import com.whut.gkd.bean.User;

import java.util.List;

public interface IUserService {
    boolean login(String username,String password);

    PageInfo<User> findAll(int currentPage, String username);

    void deleteById(int id);

    void add(User user);

    User selectUserById(int id);

    void update(User user);

    User findUserByName(String username);

    void closeShop(ShopInfo shopinfo);


    void addUser(User user);

    void applyManager(int applicanId,String applicanName,String reason);

    void applyShop(int applicanId,String applicanName,String reason,String shopName,String shopDescription);


    void deleteAll(List<Integer> ids);


    void suspendedBYId(int id);

    void normalBYId(int id);
}
